package com.jcw.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jcw.common.R;
import com.jcw.domain.Dish;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jcw.dto.DishDto;

import java.util.List;

/**
* @author JCW
* @description 针对表【dish(菜品管理)】的数据库操作Service
* @createDate 2023-03-28 11:02:32
*/
public interface DishService extends IService<Dish> {

    R<Page> pagination(int page, int pageSize, String name);

    R<String> addDish(DishDto dishDto);

    R<DishDto> echoDish(Long id);

    R<String> editDish(DishDto dishDto);

    R<String> editStatus(int statusCode, String ids);

    R<String> delete(String ids);

    R<List> dishList(Long id, Integer status);

}
